package com.yc.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 章节
 *
 * @author 王妍
 * @since 2022-05-05
 */
@Getter
@Setter
@TableName("chapter")
@ApiModel(value = "Chapter对象", description = "章节")
public class Chapter implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键id")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("章节名")
  @TableField("name")
  private String name;

  @ApiModelProperty("视频地址")
  @TableField("video")
  private String video;

  @ApiModelProperty("创建时间")
  @TableField("create_time")
  private LocalDateTime createTime;

  @ApiModelProperty("更新时间")
  @TableField("update_time")
  private LocalDateTime updateTime;

  @ApiModelProperty("课程id")
  @TableField("course_id")
  private Long courseId;

  @ApiModelProperty("排序")
  @TableField("sort")
  private Integer sort;
}
